
* REPLICATION CODE for
* Proksch, Sven-Oliver and Jonathan B. Slapin (2006) "Institutions and Coalition Formation: The German Election of 2005", 
* West European Politics, May 2006 
* SOP JBS wordscore party manifestos German 2005 election
* 5/2/2006

* Note: To run this code, you need to install wordscores for Stata, available at http://www.wordscores.com

* LOAD DATA 
* =========
clear
set memory 10m
cd ...
wordfreq cdu05econ.txt spd05econ.txt fdp05econ.txt gruene05econ.txt pds05econ.txt fdpecon02refclean.txt pdsecon02refclean.txt cdu05soc.txt spd05soc.txt fdp05soc.txt gruene05soc.txt pds05soc.txt  gruene02socrefclean.txt cdu02socrefclean.txt


* ECONOMIC DIMENSION (manifesto reference texts without party labels)
* ===================================================================
setref tpdsecon02refclean 0 tfdpecon02refclean 1
wordscore economic_clean
textscore economic_clean tpds05econ tgruene05econ tfdp05econ tspd05econ tcdu05econ


* SOCIETAL DIMENSION (manifesto reference texts without party labels)
* ===================================================================
setref tgruene02socrefclean 0 tcdu02socrefclean 1
wordscore social_clean
textscore social_clean tpds05soc tgruene05soc tfdp05soc tspd05soc tcdu05soc

